<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<link type="text/css" rel="stylesheet" href="/TP/Public/css/style.css" />
    <!--[if IE 6]>
    <script src="js/iepng.js" type="text/javascript"></script>
        <script type="text/javascript">
           EvPNG.fix('div, ul, img, li, input, a'); 
        </script>
    <![endif]-->
        
    <script type="text/javascript" src="/TP/Public/js/jquery-1.8.2.min.js"></script>
    <script type="text/javascript" src="/TP/Public/js/menu.js"></script>    
        
	<script type="text/javascript" src="/TP/Public/js/select.js"></script>
    <style>
      .m_right{
        font-size: 12px;
      }
      .eidt{
        border:1px solid red;
        width: 400px;
        height: 200px;
        position:fixed;
        background:white;
        left:50%;
        top:40%;
        display:none
      }
      .addclass{
        border:1px solid red;
      }
    </style>
    
<title>数码商城订单详情</title>
</head>
<body>  
<div class="soubg">
    <div class="sou">
        <span><a href="<?php echo U('home/index/index');?>">回到首页</a></span>
        <span class="fr">
            <span class="ss">
                <div class="ss_list">
                    <a href="#">收藏夹</a>
                    <div class="ss_list_bg">
                        <div class="s_city_t"></div>
                        <div class="ss_list_c">
                            <ul>
                                <li><a href="#">我的收藏夹</a></li>
                            </ul>
                        </div>
                    </div>     
                </div>
                <div class="ss_list">
                    <a href="#">客户服务</a>
                    <div class="ss_list_bg">
                        <div class="s_city_t"></div>
                        <div class="ss_list_c">
                            <ul>
                                <li><a href="#">客户服务</a></li>
                                <li><a href="#">客户服务</a></li>
                                <li><a href="#">客户服务</a></li>
                            </ul>
                        </div>
                    </div>    
                </div>
                <div class="ss_list">
                    <a href="#">网站导航</a>
                    <div class="ss_list_bg">
                        <div class="s_city_t"></div>
                        <div class="ss_list_c">
                            <ul>
                                <li><a href="#">网站导航</a></li>
                            </ul>
                        </div>
                    </div>    
                </div>
            </span>
            <span class="fl">|&nbsp;关注我们：</span>
            <span class="s_sh"><a href="#" class="sh1">新浪</a><a href="#" class="sh2">微信</a></span>
            <span class="fr">|&nbsp;<a href="#">手机版&nbsp;<img src="/TP/Public/images/s_tel.png" align="absmiddle" /></a></span>
        </span>
    </div>
</div>
<div class="m_top_bg" style="height: 60px;">
   
</div>
<div class="i_bg bg_color">
    <!--Begin 用户中心 Begin -->
	<div class="m_content">
   		<div class="m_left">
	<div class="left_n">管理中心</div>
    <div class="left_m">
        <div class="left_m_t t_bg2">会员中心</div>
        <ul>
            <li><a href="<?php echo U('home/member/index');?>">用户信息</a></li>
            <li><a href="<?php echo U('home/member/Member_Collect');?>">我的收藏</a></li>
            <!-- <li><a href="Member_Msg.html">我的留言</a></li> -->
            <li><a href="<?php echo U('home/member/Member_comment');?>">我的评论</a></li>
        </ul>
    </div>
    <div class="left_m">
    	<div class="left_m_t t_bg1">订单中心</div>
        <ul>
        	<li><a href="<?php echo U('home/member/member_order');?>">我的订单</a></li>
            <li><a href="<?php echo U('home/member/Member_Address');?>">收货地址</a></li>
        </ul>
    </div>
    <div class="left_m">
    	<div class="left_m_t t_bg3">账户中心</div>
        <ul>
        	<li><a href="<?php echo U('home/Member/safe_index');?>">账户安全</a></li>
        </ul>
    </div>
</div>
		<div class="m_right">
            <div class="mem_tit">
            我的订单
            </div>
           	<table border="0" class="order_tab" style="width:930px;" cellspacing="0" cellpadding="0">
              <tr>
                <td align="center">商品名称</td>
                <td align="center">商品图片</td>
                <td align="center">单价</td>
                <td align="center">数量</td>
                <td align="center">评论</td>
              </tr>
              <?php if(is_array($list)): foreach($list as $key=>$val): ?><tr>
                    <td align="center" id="goods_<?php echo ($val["goodsid"]); ?>"><?php echo ($val["goodsname"]); ?></td>
                    <td style="font-family:'宋体';" align="center">
                     <img src="/TP/Uploads/comm/<?php echo ($val["picname"]); ?>" width="48" height="48" />
                    </td>
                    <td align="center"><?php echo ($val["price"]); ?></td>
                    <td align="center"><?php echo ($val["num"]); ?></td>
                    <td align="center">
                    <a href="javascript:do_comment(<?php echo ($val['goodsid']); ?>,<?php echo ($val['uid']); ?>)">评论</a></td>
                  </tr><?php endforeach; endif; ?>
            </table>
            <!-- 2017—1—23   评论遮罩层-->
             <div class="eidt" >
          <form action="<?php echo U('Home/Comment/add');?>" method="post">
             <input type="hidden" name="gid" id="gid" value="">
             <input type="hidden" name="uid" id="uid" value="">
            <table style="margin-top: 30px">
                <tr>
                  <td> 商品名：</td>
                  <td><div id="goodsname"></div></td>
                </tr>
                <tr>
                  
                <tr>
                  <td>评价：</td>
                  <td><textarea name="content" cols="30" rows="5"></textarea></td>
                </tr>
            </table>
            <input type="submit" value="提交" style="margin-left: 150px">
            <input class="cancel" type="button" value="取消">
            
          </form>
        </div>
        <!-- 结束 -->
            <script>
               function do_comment(gid,uid){
                 jq('<div class="blank"></div>').css({
                      'width':jq(window).width(),
                      'height':jq(window).height(),
                      'background':'rgba(0,0,0,0.3)',
                      'position':'fixed',
                      'left':0,
                      'top':0,
                    }).appendTo(jq(document.body));
                    init(gid,uid);
              }
              //遮罩层
                function init(gid,uid){
                  jq('.eidt').css({
                    'margin-left':function(){
                      return -(Math.ceil(jq(this).width() / 2));
                    },
                    'margin-top':function(){
                      return -(Math.ceil(jq(this).height() / 2));
                    },
                    'display':'block',
                  }).appendTo(jq(document.body));
                  var goods = '#goods_'+gid;
                  // alert(goods_);
                  var goodsname = jq(goods).text();
                  jq("#goodsname").text(goodsname);
                  jq("#gid").val(gid);
                  jq("#uid").val(uid);
                }
                //取消按钮
                  jq('.cancel').click(function(){
                  jq('.eidt').css('display','none');
                  jq('.blank').remove();
                  });
            </script>
        </div>
    </div>
	<!--End 用户中心 End--> 
    <!--Begin Footer Begin -->
    <div class="b_btm_bg b_btm_c">
        <div class="b_btm">
            <table border="0" style="width:210px; height:62px; float:left; margin-left:75px; margin-top:30px;" cellspacing="0" cellpadding="0">
              <tr>
                <td width="72"><img src="/TP/Public/images/b1.png" width="62" height="62" /></td>
                <td><h2>正品保障</h2>正品行货  放心购买</td>
              </tr>
            </table>
			<table border="0" style="width:210px; height:62px; float:left; margin-left:75px; margin-top:30px;" cellspacing="0" cellpadding="0">
              <tr>
                <td width="72"><img src="/TP/Public/images/b2.png" width="62" height="62" /></td>
                <td><h2>满38包邮</h2>满38包邮 免运费</td>
              </tr>
            </table>
            <table border="0" style="width:210px; height:62px; float:left; margin-left:75px; margin-top:30px;" cellspacing="0" cellpadding="0">
              <tr>
                <td width="72"><img src="/TP/Public/images/b3.png" width="62" height="62" /></td>
                <td><h2>天天低价</h2>天天低价 畅选无忧</td>
              </tr>
            </table>
            <table border="0" style="width:210px; height:62px; float:left; margin-left:75px; margin-top:30px;" cellspacing="0" cellpadding="0">
              <tr>
                <td width="72"><img src="/TP/Public/images/b4.png" width="62" height="62" /></td>
                <td><h2>准时送达</h2>收货时间由你做主</td>
              </tr>
            </table>
        </div>
    </div>

    <div class="b_nav">
      <dl>                                                                                            
          <dt><a href="#">新手上路</a></dt>
            <dd><a href="#">售后流程</a></dd>
            <dd><a href="#">购物流程</a></dd>
            <dd><a href="#">订购方式</a></dd>
            <dd><a href="#">隐私声明</a></dd>
            <dd><a href="#">推荐分享说明</a></dd>
        </dl>
        <dl>
          <dt><a href="#">配送与支付</a></dt>
            <dd><a href="#">货到付款区域</a></dd>
            <dd><a href="#">配送支付查询</a></dd>
            <dd><a href="#">支付方式说明</a></dd>
        </dl>
        <dl>
          <dt><a href="#">会员中心</a></dt>
            <dd><a href="#">资金管理</a></dd>
            <dd><a href="#">我的收藏</a></dd>
            <dd><a href="#">我的订单</a></dd>
        </dl>
        <dl>
          <dt><a href="#">服务保证</a></dt>
            <dd><a href="#">退换货原则</a></dd>
            <dd><a href="#">售后服务保证</a></dd>
            <dd><a href="#">产品质量保证</a></dd>
        </dl>
        <dl>
          <dt><a href="#">联系我们</a></dt>
            <dd><a href="#">网站故障报告</a></dd>
            <dd><a href="#">购物咨询</a></dd>
            <dd><a href="#">投诉与建议</a></dd>
        </dl>
        <div class="b_tel_bg">
          <a href="#" class="b_sh1">新浪微博</a>            
          <a href="#" class="b_sh2">腾讯微博</a>
            <p>
            服务热线：<br />
            <span>400-123-4567</span>
            </p>
        </div>
        <div class="b_er">
            <div class="b_er_c"><img src="/TP/Public/images/er.gif" width="118" height="118" /></div>
            <img src="/TP/Public/images/ss.png" />
        </div>
    </div> 
    <div class="btmbg">
    <div class="btm">
          备案/许可证编号：蜀ICP备12009302号-1-www.dingguagua.com   Copyright © 2015-2018 尤洪商城网 All Rights Reserved. 复制必究 , Technical Support: Dgg Group <br />
            <img src="/TP/Public/images/b_1.gif" width="98" height="33" /><img src="/TP/Public/images/b_2.gif" width="98" height="33" /><img src="/TP/Public/images/b_3.gif" width="98" height="33" /><img src="/TP/Public/images/b_4.gif" width="98" height="33" /><img src="/TP/Public/images/b_5.gif" width="98" height="33" /><img src="/TP/Public/images/b_6.gif" width="98" height="33" />
        </div>      
    </div>
    <!--End Footer End -->    
</div>

</body>


<!--[if IE 6]>
<script src="//letskillie6.googlecode.com/svn/trunk/2/zh_CN.js"></script>
<![endif]-->
</html>